package com.explorati.design_pattern.comparson.creational.factorymethod;

public class Client {

	public static void main(String[] args) {
		System.out.println("===========创建一个成年超人=========");
		SuperManFactory factory = new AdultSuperManFactory();
		ISuperMan asm = (AdultSuperMan) factory.createSuperMan();
		asm.specialTalent();

		System.out.println("==========创建一个未成年超人==========");
		SuperManFactory factory1 = new ChildSuperManFactory();
		ISuperMan csm = (ChildSuperMan) factory1.createSuperMan();
		csm.specialTalent();
	}
}
